package cn.com.api.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_circle_member;
import cn.com.api.service.base.U_circle_memberServiceBase;

/**
 * 
 */
@Service
public interface ApiU_circle_memberService extends U_circle_memberServiceBase {

	// 新增对象后返回记录ID
	public int U_circle_memberInsertion(ApiU_circle_member u_circle_member);

	public List<Map<String, Object>> findU_circle_membersByMap(HashMap condition);

	// 获取已加入的圈子的数量
	public Integer getcircle_addedcount(String user_id);

	// 跟新圈子成员禁言状态
	public void updatecirclememberinfo(Map condition);

	// 添加多个圈子成员
	public void insertcirclememberList(List<ApiU_circle_member> circlememberlist);

	// 用户是否加入圈子
	public Integer isjoincircle(Map<String, String> paramMap);

	public ApiU_circle_member getcirclememberInfo(Map condition);

	/**
	 * @Description: 转让圈子
	 * @param user_id
	 *            原圈主
	 * @param assignor_id
	 *            要转让给的人
	 * @param circle_id
	 *            圈子id
	 * @return Integer -1不是圈主不能转让；1操作成功
	 * @author yewl
	 * @date 2017年3月2日
	 */
	public Integer assignmentcircleadmin(String user_id, String assignor_id, String circle_id) throws Exception;

	/**
	 * @Title: joincircle
	 * @Description: 申请加入圈子
	 * @param user_id
	 *            操作人
	 * @param joinuserids
	 *            要加入圈子的id集合
	 * @param circle_id
	 *            圈子id
	 * @param apply_msg
	 *            加入圈子的申请信息
	 * @return
	 * @return Map<String,Object>
	 */
	public Map<String, Object> joincircle(String user_id, String joinuserids, String circle_id, String apply_msg)
			throws Exception;

	// 审核申请信息
	public Map<String, Object> auditjoinrequest(String circle_member_id, String status) throws Exception;

	// 删除成员
	public Map<String, Object> delcirclemember(String delids) throws Exception;

	public Map<String, Object> updatecirclemembersilent(String circle_id, String silentids) throws Exception;

	public Map<String, Object> signoutcircle(String user_id, String circle_id) throws Exception;
}
